#ifndef LRCPAGE_H
#define LRCPAGE_H

#include <QWidget>
#include<QPropertyAnimation>
namespace Ui {
class LrcPage;
}



struct LyricLine
{
    qint64 time;
    QString text;
    LyricLine(qint64 Time,QString Text):time(Time),text(Text)
    {


    }

};

class LrcPage : public QWidget
{
    Q_OBJECT

public:
    explicit LrcPage(QWidget *parent = nullptr);
    ~LrcPage();
    QPropertyAnimation* Animation;
     bool parseLrc(const QString& lrcPath);
     int getLineLrcWordIndex(qint64 pos);
     QString getLineLrcWord(qint64 index);
     void showLineLrcWord(int time);

private:
    Ui::LrcPage *ui;
    QVector<LyricLine> lrcLine;
};

#endif // LRCPAGE_H
